<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet"
	href="<%=request.getContextPath()%>/effect/css/index.css" type="text/css"></link>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/effect/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/effect/My97DatePicker/WdatePicker.js"></script>
 <script type="text/javascript">
	function upd(id) {
		location.href="<%=request.getContextPath()%>/ssm_update?id="+id;
	}
	function del(id) {
		location.href="<%=request.getContextPath()%>/ssm_delete?id="+id;
	}
 </script>
  </head>
  
  <body >
	<form action="<%=request.getContextPath()%>/ssm_list" method="post">
		类型：<select name="type">
				<option value="one">one</option>
				<option value="three">three</option>
			</select>
		描述：<input type="text" name="dec">
		<input type="submit" value="search">
	</form>
	<form>
		<table>
			<tr>
				<td>id</td>
				<td>name</td>
				<td>type</td>
				<td>des</td>
				<td>sor</td>
				<td>OP</td>
			</tr>
			<c:forEach items="${wlist}" var="li">
				<tr>
					<td>${li.id}</td>
					<td>${li.name}</td>
					<td>${li.type}</td>
					<td>${li.des}</td>
					<td>${li.sor}</td>
					<td>
						<input type="button" value="UPDATE" onclick="upd(${li.id})">
						<input type="button" value="DEL" onclick="del(${li.id})">
					</td>
				</tr>
			</c:forEach>
		</table>
	</form>
  </body>
</html>